SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 58957: The EXCHANGE statement in PROC DATASETS might incorrectly exchange twice in SAS® 9.3 or higher (English with DBCS)

DetailsCodeResultsAboutRate It

The EXCHANGE statement in PROC DATASETS might incorrectly process the exchange a second time in SAS 9.3 or higher (English with DBCS). This is most likely to occur when multiple data sets with similar names exist in the library. The SAS log displays two notes reporting the exchange. The data sets appear as if they had never been exchanged. This problem does not occur in SAS 9.3 or higher (English) or SAS® (Unicode Support).

The sample code on the Full Code tab replicates the problem. The output that is generated by the sample code is shown on the Results tab.

To circumvent the problem, do one of the following:

  • Remove the data sets with similar names from the library.
  • Move the two data sets whose names you want to exchange into their own library to perform the exchange.


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASHP-UX IPF9.3 TS1M09.4 TS1M4
64-bit Enabled Solaris9.3 TS1M09.4 TS1M4
64-bit Enabled HP-UX9.3 TS1M09.4 TS1M4
64-bit Enabled AIX9.3 TS1M09.4 TS1M4
Windows Vista for x649.3 TS1M0
Windows Vista9.3 TS1M0
Windows 7 Ultimate x649.3 TS1M09.4 TS1M4
Windows 7 Ultimate 32 bit9.3 TS1M09.4 TS1M4
Windows 7 Professional x649.3 TS1M09.4 TS1M4
Windows 7 Professional 32 bit9.3 TS1M09.4 TS1M4
Windows 7 Home Premium x649.3 TS1M09.4 TS1M4
Windows 7 Home Premium 32 bit9.3 TS1M09.4 TS1M4
Windows 7 Enterprise x649.3 TS1M09.4 TS1M4
Windows 7 Enterprise 32 bit9.3 TS1M09.4 TS1M4
Microsoft Windows XP Professional9.3 TS1M0
Microsoft Windows Server 2008 for x649.3 TS1M09.4 TS1M4
Microsoft Windows Server 2008 R29.3 TS1M09.4 TS1M4
Microsoft Windows Server 20089.3 TS1M09.4 TS1M4
Microsoft Windows Server 2003 for x649.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.3 TS1M0
Microsoft® Windows® for x649.3 TS1M09.4 TS1M4
z/OS 64-bit9.3 TS1M09.4 TS1M4
z/OS9.3 TS1M09.4 TS1M4
Linux9.3 TS1M09.4 TS1M4
Linux for x649.3 TS1M09.4 TS1M4
Solaris for x649.3 TS1M09.4 TS1M4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.